<?php
/**
 * File: CrontabMonitor.php.
 * Author: CaoQiCheng
 * Editor: PhpStorm
 * Date: 16/7/15 下午15:45
 * Brief:
 */
namespace haibao\cms\model\data\crontab;

class CrontabMonitor extends \haibao\cms\model\data\Base{
	const STATU_ON = 1;
	const STATU_OFF = 0;
	
	/**
	 * 表名
	 */
	public $MonitorTable;
	/**
	 * 监听参数
	 */
	public $MonitorParam;
	/**
	 * 计划任务log
	 */
	public $CrontabLog;
	/**
	 * 计划任务执行时间
	 */
	public $CrontabTime;
	/**
	 * 状态 0未监听 1监听中
	 */
	public $Status;
	/**
	 * 创建时间
	 */
	public $CreateTime;
	/**
	 * 查询参数
	 */
	public $MonitorWhere;
	/**
	 * 执行异常数
	 */
	public $Exception;
	/**
	 * 正在执行数
	 */
	public $Online;
	/**
	 * 执行完成数
	 */
	public $Complete;
	/**
	 * 计划任务名称
	 */
	public $MonitorName;
	
	
	public function __construct(){
		parent::__construct();
		$this->stringField('MonitorTable', 'MonitorTable',true);
		$this->stringField('MonitorParam', 'MonitorParam');
		$this->stringField('CrontabLog', 'CrontabLog');
		$this->intField('CrontabTime', 'CrontabTime');
		$this->intField('Status', 'Status');
		$this->stringField('CreateTime', 'CreateTime',true);
		$this->stringField('MonitorWhere', 'MonitorWhere');
		$this->stringField('MonitorName', 'MonitorName');

		$this->setTableName('CrontabMonitor');
	}
}